<?php S('editor/ueditor.config', 'js')?>
<?php S('editor/ueditor.all', 'js')?>
<?php S('editor/lang/zh-cn/zh-cn', 'js')?>
<div class="rbox">
    <h1><i class="fa fa-table"></i> <?php echo $oprName; ?></h1>
    <div class="rb">
        <form name="form1" id="form1" action="" method="POST">
            <input size="50" type="hidden" name="projecttag" id="projecttag" value="<?php echo $projectId ?>" />
            <table border="0" cellspacing="0" cellpadding="0" class="updateTable">
                <tbody>
                    <tr>
                        <th>工程名称：</th>
                        <td>
                            <div class="editInputs"><input size="50" type="text" name="projectName" id="projectName" value="<?php echo $data['projectName'] ?>" /></div>
                            <div class="errorMsg"></div>
                        </td>
                    </tr>
                    <tr>
                        <th>工程分类：</th>
                        <td>
                            <div class="editInputs">
                                <?php if($isUpdate == 'true') {?>
                                <lable><input name="type" id="type_forward"  type="checkbox" value="forward" <?php echo $data['type'] == "forward" ? 'checked="checked"' : ''; ?> /> 正向工程</lable>
                                <lable><input name="type" id="type_reverse"  type="checkbox" value="reverse" <?php echo $data['type'] == "reverse" ? 'checked="checked"' : ''; ?> /> 反向工程</lable>
                                <?php }else{?>
                                <lable><input name="type" id="type_forward"  type="checkbox" value="forward" <?php echo isset($type) && $type == "forward" ? 'checked="checked"' : ''; ?> /> 正向工程</lable>
                                <lable><input name="type" id="type_reverse"  type="checkbox" value="reverse" <?php echo isset($type) && $type == "reverse" ? 'checked="checked"' : ''; ?> /> 反向工程</lable>
                                <?php }?>
                            </div>
                            <div class="errorMsg"></div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
        <div class="oprBtns">
            <a class="add goSubmitItem btn btn-sm btn-info" href="javascript:void(0);" url="<?php echo $postUrl?>">确认</a>
            <div class="clear"></div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var ue = UE.getEditor('description');
    var ue1 = UE.getEditor('introduce');
</script>